import { LAYOUT } from '@/router/constant'

const RouterName = 'Customer'

const customer = [
  {
    path: '/customer',
    name: 'customer',
    component: LAYOUT,
    meta: {
      title: '客户管理',
      icon: 'icon-user-add',
      sortIndex: 2,
    },
    children: [
      {
        path: 'open',
        name: 'customer-open',
        component: () => import('@/views/customer/open/index.vue'),
        meta: {
          title: '公海池',
          requireAuth: true
        }
      },
      {
        path: 'user',
        name: 'customer-user',
        component: () => import('@/views/customer/user/index.vue'),
        meta: {
          title: '客户',
          requireAuth: true
        },
      },
      {
        path: 'record',
        name: 'customer-record',
        component: () => import('@/views/customer/record/index.vue'),
        meta: {
          title: '跟进记录',
          requireAuth: true
        },
      },
      {
        path: 'd',
        name: `${RouterName}d`,
        component: () => import('@/views/demo/d.vue'),
        meta: {
          title: '跟进计划',
          requireAuth: true
        },
      },
      {
        path: 'e',
        name: `${RouterName}e`,
        component: () => import('@/views/demo/e.vue'),
        meta: {
          title: '客户分析',
          requireAuth: true
        },
      }
    ]
  }
]

export default customer
